const add = (a) => (b) => a + b;
const multiply = (a) => (b) => a * b;

// 函数组合
const addThenMultiply = (a) => (b) => multiply(add(a)(b))(b);

console.log(addThenMultiply(2)(3)); // 输出：15